# 定义一个匿名函数可以求两个数的乘积
ano1 = lambda a, b: a * b
print(ano1(2, 101))
# 定义一个匿名函数，参数为字典，返回字典中键为 age 的值
ano2 = lambda **lol: lol.get('age')
my_dic = {'name': '小明王', 'sex': '男', 'age': 19}
print(ano2(**my_dic))
ano2 = lambda **lol: print(lol)
my_dic = {'name': '小明王', 'sex': '男', 'age': 19}
ano2(**my_dic)


def test(c, d, e, *avg, **tvb):
    for f in c:
        print(f)
    for g in d:
        print(g)
    print(e.get('name'))
    for h in avg:
        print(h)
    for i in tvb.values():
        print(i)


lst1 = [1, 2, 3, 4, 5]
lst2 = [2, 4, 6, 8, 0]
tup1 = (1, 3, 5)
tup2 = (2, 4, 6)
dic1 = {'name': '小明', 'sex': '男', 'age': 29}
dic2 = {'name': '小王', 'sex': '男', 'age': 19}
test(lst1, tup1, dic1, *lst2, **dic1)
